
import request from '@/utils/request'

// 获取列表
export function getEquipmentTypeByPage(query) {
  return request({
    url: '/EquipmentTypeController/getEquipmentTypeByPage',
    method: 'get',
    params: query
  })
}

// 查询详情
export function getEquipmentTypeById(query) {
  return request({
    url: '/EquipmentTypeController/getEquipmentTypeById',
    method: 'get',
    params: query
  })
}

// 新增
export function addEquipmentType(data) {
  return request({
    url: '/EquipmentTypeController/addEquipmentType',
    method: 'post',
    data: data
  })
}

// 修改
export function updateEquipmentType(data) {
  return request({
    url: '/EquipmentTypeController/updateEquipmentType',
    method: 'post',
    data: data
  })
}

// 删除
export function deleteEquipmentTypeById(data) {
  return request({
    url: '/EquipmentTypeController/deleteEquipmentTypeById' ,
    method: 'delete',
    params: data
  })
}
//上传
export function updateImg(data) {
  return request({
    url: '/EquipmentTypeController/equipmentTypeImg',
    method: 'post',
    data: data,
    uploadFile:true
  })
}